import request from '@/utils/request'

// 查询影片和影片类型对应列表
export function listMovietyperel(query) {
  return request({
    url: '/cinema/cinema/movietyperel/list',
    method: 'get',
    params: query
  })
}

// 查询影片和影片类型对应详细
export function getMovietyperel(movieTypeId) {
  return request({
    url: '/cinema/cinema/movietyperel/' + movieTypeId,
    method: 'get'
  })
}

// 新增影片和影片类型对应
export function addMovietyperel(data) {
  return request({
    url: '/cinema/cinema/movietyperel',
    method: 'post',
    data: data
  })
}

// 修改影片和影片类型对应
export function updateMovietyperel(data) {
  return request({
    url: '/cinema/cinema/movietyperel',
    method: 'put',
    data: data
  })
}

// 删除影片和影片类型对应
export function delMovietyperel(movieTypeId) {
  return request({
    url: '/cinema/cinema/movietyperel/' + movieTypeId,
    method: 'delete'
  })
}

// 导出影片和影片类型对应
export function exportMovietyperel(query) {
  return request({
    url: '/cinema/cinema/movietyperel/export',
    method: 'get',
    params: query
  })
}